package com.atguigu.test;

import com.atguigu.config.MainConfig3;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class IOCTestLifeCircle {

    AnnotationConfigApplicationContext applicationContext =
            new AnnotationConfigApplicationContext(MainConfig3.class);

    @Test
    public void test01() {
        System.out.println(">>>>>容器创建完成");
        applicationContext.close();
    }
}
